package com.int_tech.power.dao;

import com.int_tech.power.entity.Power;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Administrator on 2017/9/23.
 */
public interface PowerDao extends JpaRepository<Power,Integer>{

    Power findPowerByNameAndIsDel(String name,int isDel);

//    Power findPowerByUserIdAndIsDel(Integer userId,int isDle);

//    Power findPowerByUserNameAndIsDel(String userName,int isDle);

    List<Power> findAllByIsDel(int isDle);

    Power findByType(int type);
}
